package com.wenheng.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Auther: 文恒
 * @Date: 2021/3/18 - 03 - 18 -15:39
 * @Description:com.wenheng.client
 * @version:1.0
 */
@FeignClient("AuthClient")
@Component
public interface AuthClient {
    @GetMapping("/auth/login")
    Map<String,Object> login(@RequestParam("userName")String userName, @RequestParam("password")String password);
}
